package com.yang.controller;

import com.yang.service.EssayService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created by Administrator on 2019/7/2.
 */

/**
 * 文章管理
 */
@Controller
@RequestMapping("essay")
public class EssayController {

    @Autowired
    private EssayService essayService;


    /**
     * 文章管理
     * @return
     */
    @RequestMapping("inputEssayManager")
    public String  inputEssay(){
        return "admin/essayManager";
    }

    /**
     * 发布文章
     * @return
     */
    @RequestMapping("writerEssay")
    public String inputWriterEssay(){
        return "admin/writerEssay";
    }



}
